package com.admin.exam.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 *
 */
public class PersonInfo {

    /**
     *
     */
    @ExcelIgnore
    private Integer id;
    /**
     * 医院名称
     */
    @ExcelIgnore
    private Integer hospital;
    @ExcelProperty(index = 2, value = "医院")
    @ColumnWidth(25)
    private String hospitalName;
    /**
     * 姓名
     */
    @ExcelProperty(index = 1, value = "姓名")
    private String name;
    /**
     * 手机号
     */
    @ExcelProperty(index = 6, value = "手机号码")
    @ColumnWidth(15)
    private String phone;
    /**
     * 城市
     */
    @ExcelProperty(index = 5, value = "城市")
    @ColumnWidth(10)
    private String city;
    /**
     * 科室
     */
    @ExcelIgnore
    private String department;
    /**
     * 分数
     */
    @ExcelProperty(index = 3, value = "成绩")
    private Integer scores;
    /**
     * 考试时间秒
     */
    @ExcelProperty(index = 4, value = "用时（秒）")
    @ColumnWidth(10)
    private Integer time;
    /**
     * 创建时间
     */
    @ExcelIgnore
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @ExcelProperty(index = 0, value = "名次")
    private Integer rank;
    @ExcelIgnore
    private Integer count;

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return this.id;
    }

    public void setHospital(Integer hospital) {
        this.hospital = hospital;
    }

    public Integer getHospital() {
        return this.hospital;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return this.name;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return this.phone;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCity() {
        return this.city;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getDepartment() {
        return this.department;
    }

    public void setScores(Integer scores) {
        this.scores = scores;
    }

    public Integer getScores() {
        return this.scores;
    }

    public void setTime(Integer time) {
        this.time = time;
    }

    public Integer getTime() {
        return this.time;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getRank() {
        return rank;
    }

    public void setRank(Integer rank) {
        this.rank = rank;
    }

    public String getHospitalName() {
        return hospitalName;
    }

    public void setHospitalName(String hospitalName) {
        this.hospitalName = hospitalName;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("PersonInfo[");
        sb.append("id=").append(id);
        sb.append(",hospital=").append(hospital);
        sb.append(",name=").append(name);
        sb.append(",phone=").append(phone);
        sb.append(",city=").append(city);
        sb.append(",department=").append(department);
        sb.append(",scores=").append(scores);
        sb.append(",time=").append(time);
        sb.append(",createTime=").append(createTime);
        sb.append("]");
        return sb.toString();
    }
}
